package cn.edu.niit.service;

import cn.edu.niit.dao.MessageDao;
import cn.edu.niit.javabean.Message;

import java.util.List;

public class MessageService {
    private MessageDao messageDao = new MessageDao();

    public List<Message> getAllMessages() {
        return messageDao.getAllMessages();
    }

    public int addMessage(String detail, String id) {
        return messageDao.addMessage(detail, id);
    }
}
